import { createAPI } from '@/utils/request'

export const list = data => createAPI('/permissions', 'get', data) // 权限组列表
export const simple = data => createAPI('/permissions/simple', 'get', data) // 简单列表
export const add = data => createAPI('/permissions', 'post', data) // 添加
export const update = id => createAPI('/permissions/' + id, 'put') // 修改
export const remove = id => createAPI('/permissions/' + id, 'delete') // 删除
export const detail = id => createAPI('/permissions/' + id, 'get') // 权限组详情
